Package pl.wendigo.chrome.targets

Targets management related classes (Manager, SessionTarget, Target)

Types

Manager
Link copied to clipboard
class Manager(browserDebuggerAddress: String, multiplexConnections: Boolean, eventsBufferSize: Int, domains: ProtocolDomains) : Closeable, AutoCloseable
Manager is responsible for querying, creating, closing, attaching to debuggable Targets on the controlled Chrome instance.
SessionTarget
Link copied to clipboard
data class SessionTarget(sessionId: SessionID, targetId: TargetID, browserContextID: BrowserContextID?)
SessionTarget represents multiplexed session we are currently connected to.
Target
Link copied to clipboard
class Target(manager: Manager, session: SessionTarget, connection: ProtocolConnection) : ProtocolDomains, AutoCloseable, Closeable
Represents browser Target that can be controlled via DevTools Protocol API

Functions

isPage
Link copied to clipboard
fun TargetInfo.isPage(): Boolean
Returns true if TargetInfo represents page.
toTarget
Link copied to clipboard
fun TargetInfo.toTarget(sessionId: SessionID): SessionTarget
Converts TargetInfo to SessionTarget for given sessionID